import { getEventStream, getRequest, postRequest } from '@/utils/request'

export const loginApi = {
  // 登录
  login: (data) => {
    return postRequest('/v1/admin/login/password', data)
  },
  // 获取当前用户信息
  getUserInfo: () => {
    return getRequest('/v1/admin/sys/user/current')
  },
  // 验证码
  getCodeImg: () => {
    return getRequest('/v1/api/common/code')
  },
  // 站点信息
  getWebsite: () => {
    return getRequest('/v1/api/common/website')
  }
}
